package com.cn.lyl.dao;

import com.cn.lyl.model.ServiceTypeModel;

import java.util.List;

public interface ServiceTypeDao {

    int add(ServiceTypeModel serviceTypeModel);

    int update(ServiceTypeModel serviceTypeModel);

    int delete(ServiceTypeModel serviceTypeModel);

    ServiceTypeModel findById(int id);

    List<ServiceTypeModel> findAll(ServiceTypeModel serviceTypeModel);

    List<ServiceTypeModel> findAll();

    ServiceTypeModel findByName(ServiceTypeModel serviceTypeModel);
}
